package com.liudadan.ioc_01;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.sql.SQLException;

@Component
public class UserService {
    @Autowired
    private UserDao userDao;
    public void save() throws SQLException {
        userDao.insert();
    }
}
